package com.lenovo.server.vote.bean;

import java.util.HashSet;
import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.ManyToMany;
import javax.persistence.ManyToOne;
import javax.persistence.OneToOne;

@Entity
public class VoteUser {

	private int id;
	private String IME;
	private String name;
	private Topic topics;
	private Option options;
	
	@ManyToOne
	public Option getOptions() {
		return options;
	}

	public void setOptions(Option option) {
		this.options = option;
	}

	@ManyToOne
	public Topic getTopics() {
		return topics;
	}

	public void setTopics(Topic topics) {
		this.topics = topics;
	}

	@Id
	@GeneratedValue
	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getIME() {
		return IME;
	}

	public void setIME(String ime) {
		IME = ime;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Override
	public String toString() {
		return name +"   " + id + " " + topics;
	}
	
	
}
